<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>

<head>
    <title>TODO supply a title</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script th:src="@{/easyui/jquery.min.js}"></script>
    <script th:src="@{/easyui/jquery.easyui.min.js}"></script>
    <script th:src="@{/easyui/easyui-lang-zh_CN.js}"></script>
    <link rel="stylesheet" th:href="@{/easyui/themes/default/easyui.css}" />
</head>

<body>
    <table id="ut" class="easyui-datagrid"
        data-options="url:'userData',singleSelect:true,fitColumns:true,pagination:true, rownumbers:true">
        <thead>
            <tr>
                <th data-options="field:'account', title: '账号',width: 100"></th>
                <th data-options="field:'userName',title: '姓名', width: 100"></th>
            </tr>
        </thead>
    </table>
    <script th:inline="none">
        $(function () {
            /* $('#ut').datagrid({
                url: 'userData',
                singleSelect:true,
                pagination:true, rownumbers:true,
                columns: [[
                    { field: 'account', title: '账号', width: 100 },
                    { field: 'userName', title: '用户名', width: 100 }
                ]]
            }); */
        });
    </script>
</body>

</html>